import { defineStore } from 'pinia'

export const userStore = defineStore('user', {
    state: () => {
        return { 
            count: 1,
            arr: []
        }
    },
    getters: { },
    actions: { 
        userChangeState(num: number){ // 不能用箭头函数
            this.count += num
        }
    }
})